1| 操作 | 旧版本 | 新版本 | d.ts文件 | 2| ---- | ------ | ------ | -------- | 3|错误码有变化|类名:usbManager;<br>方法or属性:function setCurrentFunctions(funcs: FunctionType): Promise\<void>;<br>旧版本信息:401|类名:usbManager;<br>方法or属性:function setCurrentFunctions(funcs: FunctionType): Promise\<void>;<br>新版本信息:401,14400002|@ohos.usbManager.d.ts| 4|访问级别有变化|类名:PowerRoleType;<br>方法or属性:NONE = 0<br>旧版本信息:|类名:PowerRoleType;<br>方法or属性:NONE = 0<br>新版本信息:systemapi|@ohos.usb.d.ts| 5|访问级别有变化|类名:DataRoleType;<br>方法or属性:NONE = 0<br>旧版本信息:|类名:DataRoleType;<br>方法or属性:NONE = 0<br>新版本信息:systemapi|@ohos.usb.d.ts| 6|访问级别有变化|类名:PortModeType;<br>方法or属性:NONE = 0<br>旧版本信息:|类名:PortModeType;<br>方法or属性:NONE = 0<br>新版本信息:systemapi|@ohos.usb.d.ts| 7|访问级别有变化|类名:FunctionType;<br>方法or属性:NONE = 0<br>旧版本信息:|类名:FunctionType;<br>方法or属性:NONE = 0<br>新版本信息:systemapi|@ohos.usb.d.ts| 8|访问级别有变化|类名:PowerRoleType;<br>方法or属性:SOURCE = 1<br>旧版本信息:|类名:PowerRoleType;<br>方法or属性:SOURCE = 1<br>新版本信息:systemapi|@ohos.usb.d.ts| 9|访问级别有变化|类名:PowerRoleType;<br>方法or属性:SINK = 2<br>旧版本信息:|类名:PowerRoleType;<br>方法or属性:SINK = 2<br>新版本信息:systemapi|@ohos.usb.d.ts| 10|访问级别有变化|类名:DataRoleType;<br>方法or属性:HOST = 1<br>旧版本信息:|类名:DataRoleType;<br>方法or属性:HOST = 1<br>新版本信息:systemapi|@ohos.usb.d.ts| 11|访问级别有变化|类名:DataRoleType;<br>方法or属性:DEVICE = 2<br>旧版本信息:|类名:DataRoleType;<br>方法or属性:DEVICE = 2<br>新版本信息:systemapi|@ohos.usb.d.ts| 12|访问级别有变化|类名:PortModeType;<br>方法or属性:UFP = 1<br>旧版本信息:|类名:PortModeType;<br>方法or属性:UFP = 1<br>新版本信息:systemapi|@ohos.usb.d.ts| 13|访问级别有变化|类名:PortModeType;<br>方法or属性:DFP = 2<br>旧版本信息:|类名:PortModeType;<br>方法or属性:DFP = 2<br>新版本信息:systemapi|@ohos.usb.d.ts| 14|访问级别有变化|类名:PortModeType;<br>方法or属性:DRP = 3<br>旧版本信息:|类名:PortModeType;<br>方法or属性:DRP = 3<br>新版本信息:systemapi|@ohos.usb.d.ts| 15|访问级别有变化|类名:PortModeType;<br>方法or属性:NUM_MODES = 4<br>旧版本信息:|类名:PortModeType;<br>方法or属性:NUM_MODES = 4<br>新版本信息:systemapi|@ohos.usb.d.ts| 16|访问级别有变化|类名:USBPortStatus;<br>方法or属性:currentMode: number;<br>旧版本信息:|类名:USBPortStatus;<br>方法or属性:currentMode: number;<br>新版本信息:systemapi|@ohos.usb.d.ts| 17|访问级别有变化|类名:USBPortStatus;<br>方法or属性:currentPowerRole: number;<br>旧版本信息:|类名:USBPortStatus;<br>方法or属性:currentPowerRole: number;<br>新版本信息:systemapi|@ohos.usb.d.ts| 18|访问级别有变化|类名:USBPortStatus;<br>方法or属性:currentDataRole: number;<br>旧版本信息:|类名:USBPortStatus;<br>方法or属性:currentDataRole: number;<br>新版本信息:systemapi|@ohos.usb.d.ts| 19|访问级别有变化|类名:USBPort;<br>方法or属性:id: number;<br>旧版本信息:|类名:USBPort;<br>方法or属性:id: number;<br>新版本信息:systemapi|@ohos.usb.d.ts| 20|访问级别有变化|类名:USBPort;<br>方法or属性:supportedModes: PortModeType;<br>旧版本信息:|类名:USBPort;<br>方法or属性:supportedModes: PortModeType;<br>新版本信息:systemapi|@ohos.usb.d.ts| 21|访问级别有变化|类名:USBPort;<br>方法or属性:status: USBPortStatus;<br>旧版本信息:|类名:USBPort;<br>方法or属性:status: USBPortStatus;<br>新版本信息:systemapi|@ohos.usb.d.ts| 22|访问级别有变化|类名:FunctionType;<br>方法or属性:ACM = 1<br>旧版本信息:|类名:FunctionType;<br>方法or属性:ACM = 1<br>新版本信息:systemapi|@ohos.usb.d.ts| 23|访问级别有变化|类名:FunctionType;<br>方法or属性:ECM = 2<br>旧版本信息:|类名:FunctionType;<br>方法or属性:ECM = 2<br>新版本信息:systemapi|@ohos.usb.d.ts| 24|访问级别有变化|类名:FunctionType;<br>方法or属性:HDC = 4<br>旧版本信息:|类名:FunctionType;<br>方法or属性:HDC = 4<br>新版本信息:systemapi|@ohos.usb.d.ts| 25|访问级别有变化|类名:FunctionType;<br>方法or属性:MTP = 8<br>旧版本信息:|类名:FunctionType;<br>方法or属性:MTP = 8<br>新版本信息:systemapi|@ohos.usb.d.ts| 26|访问级别有变化|类名:FunctionType;<br>方法or属性:PTP = 16<br>旧版本信息:|类名:FunctionType;<br>方法or属性:PTP = 16<br>新版本信息:systemapi|@ohos.usb.d.ts| 27|访问级别有变化|类名:FunctionType;<br>方法or属性:RNDIS = 32<br>旧版本信息:|类名:FunctionType;<br>方法or属性:RNDIS = 32<br>新版本信息:systemapi|@ohos.usb.d.ts| 28|访问级别有变化|类名:FunctionType;<br>方法or属性:MIDI = 64<br>旧版本信息:|类名:FunctionType;<br>方法or属性:MIDI = 64<br>新版本信息:systemapi|@ohos.usb.d.ts| 29|访问级别有变化|类名:FunctionType;<br>方法or属性:AUDIO_SOURCE = 128<br>旧版本信息:|类名:FunctionType;<br>方法or属性:AUDIO_SOURCE = 128<br>新版本信息:systemapi|@ohos.usb.d.ts| 30|访问级别有变化|类名:FunctionType;<br>方法or属性:NCM = 256<br>旧版本信息:|类名:FunctionType;<br>方法or属性:NCM = 256<br>新版本信息:systemapi|@ohos.usb.d.ts| 31|访问级别有变化|类名:PowerRoleType;<br>方法or属性:NONE = 0<br>旧版本信息:|类名:PowerRoleType;<br>方法or属性:NONE = 0<br>新版本信息:systemapi|@ohos.usbManager.d.ts| 32|访问级别有变化|类名:DataRoleType;<br>方法or属性:NONE = 0<br>旧版本信息:|类名:DataRoleType;<br>方法or属性:NONE = 0<br>新版本信息:systemapi|@ohos.usbManager.d.ts| 33|访问级别有变化|类名:PortModeType;<br>方法or属性:NONE = 0<br>旧版本信息:|类名:PortModeType;<br>方法or属性:NONE = 0<br>新版本信息:systemapi|@ohos.usbManager.d.ts| 34|访问级别有变化|类名:FunctionType;<br>方法or属性:NONE = 0<br>旧版本信息:|类名:FunctionType;<br>方法or属性:NONE = 0<br>新版本信息:systemapi|@ohos.usbManager.d.ts| 35|访问级别有变化|类名:PowerRoleType;<br>方法or属性:SOURCE = 1<br>旧版本信息:|类名:PowerRoleType;<br>方法or属性:SOURCE = 1<br>新版本信息:systemapi|@ohos.usbManager.d.ts| 36|访问级别有变化|类名:PowerRoleType;<br>方法or属性:SINK = 2<br>旧版本信息:|类名:PowerRoleType;<br>方法or属性:SINK = 2<br>新版本信息:systemapi|@ohos.usbManager.d.ts| 37|访问级别有变化|类名:DataRoleType;<br>方法or属性:HOST = 1<br>旧版本信息:|类名:DataRoleType;<br>方法or属性:HOST = 1<br>新版本信息:systemapi|@ohos.usbManager.d.ts| 38|访问级别有变化|类名:DataRoleType;<br>方法or属性:DEVICE = 2<br>旧版本信息:|类名:DataRoleType;<br>方法or属性:DEVICE = 2<br>新版本信息:systemapi|@ohos.usbManager.d.ts| 39|访问级别有变化|类名:PortModeType;<br>方法or属性:UFP = 1<br>旧版本信息:|类名:PortModeType;<br>方法or属性:UFP = 1<br>新版本信息:systemapi|@ohos.usbManager.d.ts| 40|访问级别有变化|类名:PortModeType;<br>方法or属性:DFP = 2<br>旧版本信息:|类名:PortModeType;<br>方法or属性:DFP = 2<br>新版本信息:systemapi|@ohos.usbManager.d.ts| 41|访问级别有变化|类名:PortModeType;<br>方法or属性:DRP = 3<br>旧版本信息:|类名:PortModeType;<br>方法or属性:DRP = 3<br>新版本信息:systemapi|@ohos.usbManager.d.ts| 42|访问级别有变化|类名:PortModeType;<br>方法or属性:NUM_MODES = 4<br>旧版本信息:|类名:PortModeType;<br>方法or属性:NUM_MODES = 4<br>新版本信息:systemapi|@ohos.usbManager.d.ts| 43|访问级别有变化|类名:USBPortStatus;<br>方法or属性:currentMode: number;<br>旧版本信息:|类名:USBPortStatus;<br>方法or属性:currentMode: number;<br>新版本信息:systemapi|@ohos.usbManager.d.ts| 44|访问级别有变化|类名:USBPortStatus;<br>方法or属性:currentPowerRole: number;<br>旧版本信息:|类名:USBPortStatus;<br>方法or属性:currentPowerRole: number;<br>新版本信息:systemapi|@ohos.usbManager.d.ts| 45|访问级别有变化|类名:USBPortStatus;<br>方法or属性:currentDataRole: number;<br>旧版本信息:|类名:USBPortStatus;<br>方法or属性:currentDataRole: number;<br>新版本信息:systemapi|@ohos.usbManager.d.ts| 46|访问级别有变化|类名:USBPort;<br>方法or属性:id: number;<br>旧版本信息:|类名:USBPort;<br>方法or属性:id: number;<br>新版本信息:systemapi|@ohos.usbManager.d.ts| 47|访问级别有变化|类名:USBPort;<br>方法or属性:supportedModes: PortModeType;<br>旧版本信息:|类名:USBPort;<br>方法or属性:supportedModes: PortModeType;<br>新版本信息:systemapi|@ohos.usbManager.d.ts| 48|访问级别有变化|类名:USBPort;<br>方法or属性:status: USBPortStatus;<br>旧版本信息:|类名:USBPort;<br>方法or属性:status: USBPortStatus;<br>新版本信息:systemapi|@ohos.usbManager.d.ts| 49|访问级别有变化|类名:FunctionType;<br>方法or属性:ACM = 1<br>旧版本信息:|类名:FunctionType;<br>方法or属性:ACM = 1<br>新版本信息:systemapi|@ohos.usbManager.d.ts| 50|访问级别有变化|类名:FunctionType;<br>方法or属性:ECM = 2<br>旧版本信息:|类名:FunctionType;<br>方法or属性:ECM = 2<br>新版本信息:systemapi|@ohos.usbManager.d.ts| 51|访问级别有变化|类名:FunctionType;<br>方法or属性:HDC = 4<br>旧版本信息:|类名:FunctionType;<br>方法or属性:HDC = 4<br>新版本信息:systemapi|@ohos.usbManager.d.ts| 52|访问级别有变化|类名:FunctionType;<br>方法or属性:MTP = 8<br>旧版本信息:|类名:FunctionType;<br>方法or属性:MTP = 8<br>新版本信息:systemapi|@ohos.usbManager.d.ts| 53|访问级别有变化|类名:FunctionType;<br>方法or属性:PTP = 16<br>旧版本信息:|类名:FunctionType;<br>方法or属性:PTP = 16<br>新版本信息:systemapi|@ohos.usbManager.d.ts| 54|访问级别有变化|类名:FunctionType;<br>方法or属性:RNDIS = 32<br>旧版本信息:|类名:FunctionType;<br>方法or属性:RNDIS = 32<br>新版本信息:systemapi|@ohos.usbManager.d.ts| 55|访问级别有变化|类名:FunctionType;<br>方法or属性:MIDI = 64<br>旧版本信息:|类名:FunctionType;<br>方法or属性:MIDI = 64<br>新版本信息:systemapi|@ohos.usbManager.d.ts| 56|访问级别有变化|类名:FunctionType;<br>方法or属性:AUDIO_SOURCE = 128<br>旧版本信息:|类名:FunctionType;<br>方法or属性:AUDIO_SOURCE = 128<br>新版本信息:systemapi|@ohos.usbManager.d.ts| 57|访问级别有变化|类名:FunctionType;<br>方法or属性:NCM = 256<br>旧版本信息:|类名:FunctionType;<br>方法or属性:NCM = 256<br>新版本信息:systemapi|@ohos.usbManager.d.ts| 58